package main

import "fmt"

func calcuate(value int, resultChan chan int) {

	result := value + 2
	resultChan <- result
}

func main() {
	resultChan := make(chan int)
	go calcuate(1, resultChan)

	result := <-resultChan
	fmt.Println(result)
}
